//
//  AppDelegate.h
//  KFD
//
//  Created by JIRENTIANXIANG on 6/8/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GeTuiSdk.h"

#define KFDChatNotification @"KFDChat"


#define kAppId           @"4pCTeiqn3XAsIC6A2TFn03"
#define kAppKey          @"wXznwSM5hb84ZbVYg6wlv2"
#define kAppSecret       @"sSOAHromWk8eYl3omfsna4"

@interface AppDelegate : UIResponder <UIApplicationDelegate,GeTuiSdkDelegate>
//{
//@private
//    NSString *_deviceToken;
//}

@property (copy,nonatomic) NSString* chatUrl;

@property (strong, nonatomic) UIWindow *window;

@property (retain, nonatomic) NSString *appKey;
@property (retain, nonatomic) NSString *appSecret;
@property (retain, nonatomic) NSString *appID;
@property (retain, nonatomic) NSString *clientId;
@property (strong, nonatomic) NSString* deviceToken;
@property (assign, nonatomic) SdkStatus sdkStatus;

@property (assign, nonatomic) int lastPayloadIndex;
@property (retain, nonatomic) NSString *payloadId;

- (void)startSdkWith:(NSString *)appID appKey:(NSString *)appKey appSecret:(NSString *)appSecret;
- (void)stopSdk;

- (void)setDeviceToken:(NSString *)aToken;
- (BOOL)setTags:(NSArray *)aTag error:(NSError **)error;
- (NSString *)sendMessage:(NSData *)body error:(NSError **)error;

- (void)bindAlias:(NSString *)aAlias;
- (void)unbindAlias:(NSString *)aAlias;

@end

